import request from '../utils/request.js'


export default {
    login (data) {
        return request({
            url: '/users/login',
            method: 'post',
            data
        })
    },
    getPermissionList (data) {
        return request({
            url: '/users/getPermissionList',
            method: 'get',
            data
        })
    },
    getUserList (data) {
        return request({
            url: '/users/list',
            method: 'get',
            data
        })
    },
    getRolesList (data) {
        return request({
            url: '/roles/allList',
            method: 'get',
            data
        })
    },
    getdeptList (data) {
        return request({
            url: '/dept/list',
            method: 'get',
            data
        })
    },
    userOperate (data) {
        return request({
            url: '/users/operate',
            method: 'post',
            data
        })
    },
    userdelete (data) {
        return request({
            url: '/users/delete',
            method: 'post',
            data
        })
    },
    getMenuList (data) {
        return request({
            url: '/menu/list',
            method: 'get',
            data
        })
    },
    getMenuOperate (data) {
        return request({
            url: '/menu/operate',
            method: 'post',
            data
        })
    },
    getRoleList (data) {
        return request({
            url: '/roles/list',
            method: 'get',
            data
        })
    },
    getOperate (data) {
        return request({
            url: '/roles/operate',
            method: 'post',
            data
        })
    },
    getDeptList (data) {
        return request({
            url: '/dept/list',
            method: 'get',
            data
        })
    },
    getDepoperate (data) {
        return request({
            url: '/dept/operate',
            method: 'post',
            data
        })
    },
    getDepAllList (data) {
        return request({
            url: '/roles/allList',
            method: 'get',
            data
        })
    },


}